package com.longge;

public class NumOfStrings {
    public int numOfStrings(String[] patterns, String word) {

        int ans = 0;
        for (String pattern : patterns) {
            if (word.contains(pattern))ans++;
        }
        return ans;
    }
}
